package di.ass.view;

import di.ass.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.ToggleButton;

public class ElementListFood extends LinearLayout {

	private TextView nameFood;
	private TextView quantity;
	private CheckBox checkFood;

	private LinearLayout linearLayout;
	private ToggleButton toggleButton;

	public ElementListFood(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		LayoutInflater inflater = (LayoutInflater) this.getContext()
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.element_list_food, this, true);
		setNameFood((TextView) findViewById(R.id.idFood));
		setQuantity((TextView) findViewById(R.id.idQuantity));
		setCheckFood((CheckBox) findViewById(R.id.idCheckFood));
		setLinearLayout((LinearLayout) findViewById(R.id.layoutEListFood));
		setToggleButton((ToggleButton) findViewById(R.id.checkBuy));
	}

	public TextView getNameFood() {
		return nameFood;
	}

	public void setNameFood(TextView nameFood) {
		this.nameFood = nameFood;
	}

	public TextView getQuantity() {
		return quantity;
	}

	public void setQuantity(TextView quantity) {
		this.quantity = quantity;
	}

	public CheckBox getCheckFood() {
		return checkFood;
	}

	public void setCheckFood(CheckBox checkFood) {
		this.checkFood = checkFood;
	}

	public LinearLayout getLinearLayout() {
		return linearLayout;
	}

	public void setLinearLayout(LinearLayout linearLayout) {
		this.linearLayout = linearLayout;
	}

	public ToggleButton getToggleButton() {
		return toggleButton;
	}

	public void setToggleButton(ToggleButton toggleButton) {
		this.toggleButton = toggleButton;
	}

}
